package com.dd.cloud.user.req.drugs;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.dd.cloud.common.annotate.validation.Name;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 添加药品入库记录
 * </p>
 *
 * @author czg
 * @since 2022-05-09
 */
@Data
public class ExcelAddDrugsWarehousingReq{

    /**
     * 用法及注意事项
     */
    @Name(begin = "单据号")
    @Excel(name = "*采购单据编号/药品批号")
    private String receiptNo;

    /**
     * 药材编码
     */
    @Name(begin = "药品编码", required = false)
    @Excel(name = "*药品编号")
    private String drugnum;

    /**
     * 药材名称
     */
    @Name(begin = "药材名称")
    @Excel(name = "*药品名称")
    private String herbName;

    /**
     * 入库数量
     */
    @NotNull(message = "入口数量不能为空")
    @Excel(name = "*入库数量")
    private BigDecimal wareQty;

    /**
     * 有效日期
     */
    @Excel(name = "有效期至")
    private Date termDate;

    /**
     * 备注
     */
    @Length(max = 500)
    @Excel(name = "入库备注")
    private String remarks;

    /**
     * 供应商
     */
    @Name(begin = "供应商", required = false)
    @Excel(name = "供应商名称")
    private String supplier;

    /**
     * 产地
     */
    @Name(begin = "产地", required = false)
    @Excel(name = "产地")
    private String origin;

}
